package net.web.belerofont.action.support;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.web.belerofont.action.Action;
import net.web.belerofont.action.InvokerContext;

public class InvokerContextSupport implements InvokerContext {
	private Action action;
	private HttpServletRequest request;
	private HttpServletResponse response;
	
	public InvokerContextSupport(Action action, HttpServletRequest request, HttpServletResponse response) {
		this.action = action;
		this.request = request;
		this.response = response;
	}
	
	/**
	 *@see net.web.belerofont.action.InvokerContext#getHttpRequest()
	 */
	public HttpServletRequest getHttpRequest() {
		return this.request;
	}
	 
	/**
	 *@see net.web.belerofont.action.InvokerContext#getHttpResponse()
	 */
	public HttpServletResponse getHttpResponse() {
		return this.response;
	}
	 
	/**
	 *@see net.web.belerofont.action.InvokerContext#getAction()
	 */
	public Action getAction() {
		return this.action;
	}
	 
}
 
